package com.msmall.community.common.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.msmall.base.model.BaseObject;

@Entity
@Table(name="base_abuse")
public class Abuse extends BaseObject {

	private static final long serialVersionUID = 342316933151524046L;

	@Id
	@Column(name="abuse_id")
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Long abuseId;

	//1:TOPIC 2THREAD 3blog
	@Column(name="abuse_type")
	private Short abuseType;

	@Column(name="entity")
	private Long entity;

	//1 未审核，2审核过
	@Column(name="audit")
	private Short audit;

	@Column(name="auditor")
	private Long auditor;

	@Column(name="comments")
	private String comments;

	@Column(name="audit_time")
	@Temporal(TemporalType.TIMESTAMP)
	private Date auditTime;

	@Column(name="report_time")
	@Temporal(TemporalType.TIMESTAMP)
	private Date reportTime;

	@Column(name="reporter")
	private Long reporter;

	@Column(name="reason")
	private String reason;

	@Column(name="url")
	private String url;

	public Abuse() {
		super();
	}

	public Long getAbuseId() {
		return this.abuseId;
	}

	public void setAbuseId(Long abuseId) {
		this.abuseId = abuseId;
	}

	public Short getAbuseType() {
		return this.abuseType;
	}

	public void setAbuseType(Short abuseType) {
		this.abuseType = abuseType;
	}

	public Long getEntity() {
		return this.entity;
	}

	public void setEntity(Long entity) {
		this.entity = entity;
	}

	public Short getAudit() {
		return this.audit;
	}

	public void setAudit(Short audit) {
		this.audit = audit;
	}

	public Long getAuditor() {
		return this.auditor;
	}

	public void setAuditor(Long auditor) {
		this.auditor = auditor;
	}

	public String getComments() {
		return this.comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}

	public Date getAuditTime() {
		return this.auditTime;
	}

	public void setAuditTime(Date auditTime) {
		this.auditTime = auditTime;
	}

	public Date getReportTime() {
		return this.reportTime;
	}

	public void setReportTime(Date reportTime) {
		this.reportTime = reportTime;
	}

	public Long getReporter() {
		return this.reporter;
	}

	public void setReporter(Long reporter) {
		this.reporter = reporter;
	}

	public String getReason() {
		return this.reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Override
	public boolean equals(Object o) {
		return false;
	}

	@Override
	public int hashCode() {
		return 0;
	}

	@Override
	public String toString() {
		return null;
	}

}
